package com.woniuxy.factory.mapper;

import com.woniuxy.factory.entity.Schedule;
import com.woniuxy.factory.entity.WorkOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkOrderMapper {
    List<WorkOrder> selectWorkOrders(@Param("workOrder") WorkOrder workOrder,@Param("page") int page,@Param("limit") int limit);

    int selectWorkOrderCount(@Param("workOrder") WorkOrder workOrder);

    void insertWorkOrder(WorkOrder workOrder);

    void deleteWorkOrderById(String worId);

    WorkOrder workOrderEchoById(String worId);

    void updateWorkOrderById(WorkOrder workOrder);

    void deleteWorkOrderSelected(int[] worIds);

    WorkOrder selectWorkOrderByPlanid(String prpId);

    List<WorkOrder> selectAllWorkOrder();

    Schedule selectScheduleByplanId(String planid);

    WorkOrder selectWorkOrderEchoById(String planid);
}
